package com.sl.plugin.step.manytoone;

import com.sl.core.engine.annotations.Comp;
import com.sl.core.engine.data.ProcessCompContextService;
import com.sl.core.engine.meta.ProcessCompDescriptorService;
import com.sl.core.engine.meta.impl.AbstractProcessCompDescriptor;
import com.sl.core.engine.meta.row.ProcessRowDescriptor;
import com.sl.core.engine.meta.valuemeta.ObjArrayMetaInterface;
import com.sl.core.engine.step.ProcessCompService;
import lombok.Getter;

import java.util.*;

//@Comp(id = "ManyToOne", name = "多行转一行", desc = "多行转一行", groupName = "转换")
@Getter
public class ManyToOneCompCompDescriptor extends AbstractProcessCompDescriptor<
        ManyToOneComp,ManyToOneCompContext> implements ProcessCompDescriptorService {


    @Override
    public ProcessRowDescriptor getResultDescriptor(ProcessRowDescriptor rowDescriptor) {
        return rowDescriptor;
    }

//    @Override
//    protected ProcessCompService getComp() {
//        return new ManyToOneComp(this);
//    }
//
//
//    @Override
//    public ProcessCompContextService getContext() {
//        ManyToOneCompContext manyToOneCompContext = new ManyToOneCompContext();
//        manyToOneCompContext.setSize(Integer.MAX_VALUE);
//        return manyToOneCompContext;
//    }


}
